<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta http-equiv=”X-UA-Compatible” content=”IE=edge,chrome=1″/>
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
		<title>数据统计</title>
		<link rel="stylesheet" href="{:C('__STATIC__')}{$theme}/Static/{:C('css')}/common.css" />
		<link rel="stylesheet" href="{:C('__STATIC__')}{$theme}/Static/{:C('css')}/sjtj.css" />
	</head>
	<body>
		<div id="header">
        <div class="header">
            <h1 class="tit">数据统计</h1>
            <!--<p class="goback">-->
                <!--<a class="return" href="index.html">返回</a>-->
                <!--<a class="close" href="#">关闭</a>-->
            <!--</p>-->
            <!--<p class="more"><a class="share"></a></p>-->
        </div>
    </div>
    <div class="banx-a">
    	<div class="a-a">
    		<div class="a1">
    			<p class="aa1"></p>
    			<p class="aa2">销售数据统计</p>
    		</div>
    		<ul>
    				<li>
    					<div class="lefts"><img src="{:C('__STATIC__')}{$theme}/Static/img/1_03.jpg"></div>

    					<div class="rights">
    						<p>利润</p>
							<if condition="$profitsum eq null">
								<p>0</p>
								<else/>
    						<p>{$profitsum}</p>
							</if>
    					</div>
    				</li>

    				<li>
    					<div class="lefts"><img src="{:C('__STATIC__')}{$theme}/Static/img/2_05.jpg"></div>
						<a href="{:U('Order/index')}">
    					<div class="rights">
    						<p>总销售额</p>
							<if condition="$allconsume eq null">
								<p>0</p>
								<else/>
    						<p>{$allconsume}</p>
							</if>
    					</div>
						</a>
    				</li>
    				<li>
    					<div class="lefts"><img src="{:C('__STATIC__')}{$theme}/Static/img/3_10.jpg"></div>
						<a href="{:U('Order/index')}">
    					<div class="rights">
    						<p>昨日销售额</p>
							<if condition="$yesterdaysum eq null">
								<p>0</p>
								<else/>
    						<p>{$yesterdaysum}</p>
							</if>
    					</div>
						</a>
					</li>
    				<li>
    					<div class="lefts"><img src="{:C('__STATIC__')}{$theme}/Static/img/4_12.jpg"></div>

						<a href="{:U('Order/index')}">
    					<div class="rights">
    						<p>月销售额</p>
							<if condition="$monthsum eq null">
								<p>0</p>
								<else/>
    						<p>{$monthsum}</p>
							</if>
    					</div>
						</a>
    				</li>
    			</ul>
    	</div>
		<if condition="$is_agent eq 1">
    	<div class="a-a">
    		<div class="a1">
    			<p class="aa1"></p>
    			<p class="aa2">代理数据统计</p>
    		</div>
    		<ul>
    				<li>
    					<div class="lefts"><img src="{:C('__STATIC__')}{$theme}/Static/img/5_17.jpg"></div>

						<a href="{:U('Agent/index')}">
    					<div class="rights">
    						<p>下级数量</p>
							<if condition="$down_agent_num eq null">
								<p>0</p>
								<else/>
								<p>{$down_agent_num}</p>
							</if>
    					</div>
						</a>
    				</li>
    				<li>
    					<div class="lefts"><img src="{:C('__STATIC__')}{$theme}/Static/img/6_19.jpg"></div>

    					<div class="rights">
    						<p>下级下单总量</p>
							<if condition="$down_agent_sum eq null">
								<p>0</p>
								<else/>
								<p>{$down_agent_sum}</p>
							</if>
    					</div>
    				</li>
    				<li>
    					<div class="lefts"><img src="{:C('__STATIC__')}{$theme}/Static/img/7_22.jpg"></div>
    					<div class="rights">
    						<p>下级下单总额</p>
							<if condition="$down_agent_pricesum eq null">
								<p>0</p>
								<else/>
								<p>{$down_agent_pricesum}</p>
							</if>
    					</div>
    				</li>
    			</ul>
    	</div>
		</if>
    </div>

    <script>
        function resize() {
            var clientWidth = document.documentElement.clientWidth;
            document.documentElement.style.fontSize = 100 * (clientWidth / 750  ) + 'px';
        }
        resize();
        window.addEventListener('resize', resize);
    </script>
	</body>
</html>
